<template>
  <div id="app">
    <div id="header">
      <div id="logo"></div>
      <div id="userinfo">视频分帧标记系统（仅限答辩演示使用）</div>
    </div>
    <div id="container">
      <router-view />
    </div>
    <sidebar-menu id="leftMenu" :menu="menu" :hideToggle="true" />
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      menu: [
        // {
        //   href: "/createTask",
        //   title: "任务创建",
        //   icon: "iconfont iconkaishi"
        // },
        // {
        //   href: "/taskList",
        //   title: "任务列表",
        //   icon: "iconfont iconkaishi"
        // },
        {
          href: "/frameMark",
          title: "分帧标记",
          icon: "iconfont iconkaishi"
        },
        {
          href: "/help",
          title: "帮助指引",
          icon: "iconfont iconkaishi"
        }
      ]
    };
  }
};
</script>

<style>
#logo {
  width: 150px;
  height: 50px;
  display: inline-block;
  background-image: url("../static/svg/logo.svg");
}
#header {
  height: 50px;
  width: 100%;
  background-color: #2a2a2e;
  position: fixed;
}
#leftMenu {
  width: 150px;
  margin-top: 50px;
}
#container {
  position: absolute;
  top: 50px;
  bottom: 0;
  right: 0;
  left: 150px;
  /* overflow: scroll; */
}
#userinfo {
  font-size: 1rem;
  height: 100%;
  line-height: 50px;
  float: right;
  color: #ffffff;
  padding-right: 10px;
}
.vsm--title {
  font-size: 12px;
}
</style>